package com.yang.core;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts2.interceptor.ServletRequestAware;
import org.apache.struts2.interceptor.ServletResponseAware;
import org.apache.struts2.interceptor.SessionAware;

import com.opensymphony.xwork2.ActionSupport;

public class BaseAction extends ActionSupport implements ServletRequestAware,ServletResponseAware,SessionAware{

	private static final long serialVersionUID = 224940248395556633L;
	@SuppressWarnings("unused")
	private HttpServletResponse resp;
	@SuppressWarnings("unused")
	private HttpServletRequest req;
	@SuppressWarnings("unused")
	private Map<String,Object> map;

	@Override
	public void setServletResponse(HttpServletResponse resp) {
		this.resp=resp;
	}

	@Override
	public void setServletRequest(HttpServletRequest req) {
		this.req=req;
	}

	@Override
	public void setSession(Map<String, Object> map) {
		this.map=map;
	}

}
